package com.iotechn.unimall.data.domain;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * 仓库损耗表
 *
 * @author wxw
 * @email
 * @date 2020-04-13 11:50:57
 */

@Data
@TableName("unimall_warehouse_loss")
public class WarehouseLossDO extends SuperDO {

    /**
     * 损耗单号
     */
    @TableField("loss_check_no")
    private String lossCheckNo;
    /**
     * 仓库id
     */
    @TableField("warehouse_id")
    private Long warehouseId;
    /**
     * 损耗金额
     */
    @TableField("loss_check_amount")
    private Long lossCheckAmount;
    /**
     * 检查人id
     */
    @TableField("loss_check_id")
    private Long lossCheckId;
    /**
     * 检查人名称
     */
    @TableField("loss_check_user")
    private String lossCheckUser;
    /**
     * 损耗备注
     */
    @TableField("loss_check_info")
    private String lossCheckInfo;
    /**
     * 损耗时间
     */
    @TableField("loss_check_time")
    private Date lossCheckTime;
    /**
     * 状态，1 已确认，2 待确认
     */
    @TableField("loss_check_state")
    private Integer lossCheckState;
    /**
     * 管理员id
     */
    @TableField("admin_id")
    private Long adminId;
    /**
     *
     */
    @TableField("gmt_create")
    private Date gmtCreate;
    /**
     *
     */
    @TableField("gmt_update")
    private Date gmtUpdate;
    /**
     * 确认人
     */
    @TableField("loss_check_confirm_id")
    private Long lossCheckConfirmId;
    /**
     * 确认人账号
     */
    @TableField("loss_check_confirm_username")
    private String lossCheckConfirmUsername;
    /**
     * 确认人真实姓名
     */
    @TableField("loss_check_confirm_realname")
    private String lossCheckConfirmRealname;
    /**
     * 损耗数量
     */
    @TableField("loss_check_count")
    private Float lossCheckCount;
    /**
     * 操作人真实姓名
     */
    @TableField("admin_realname")
    private String adminRealname;
    /**
     * 确认时间
     */
    @TableField("loss_check_confirm_time")
    private Date lossCheckConfirmTime;
    /**
     * 类型
     */
    @TableField("loss_type")
    private Integer lossType;

    @TableField("admin_username")
    private String adminUsername;

    @TableField(exist = false)
    private List<WarehouseLossGoodsDO> skus;

}
